<?php
declare(strict_types=1);

namespace App;

interface ServerInterface
{
    const HTTP_SERVER = -1;
    const WEBSOCKET_SERVER = -2;

    const SWOOLE_SOCK_TCP = 1;
    const SWOOLE_SOCK_UDP = 2;
    const SWOOLE_SOCK_TCP6 = 3;
    const SWOOLE_SOCK_UDP6 = 4;
    const SWOOLE_SOCK_UNIX_STREAM = 5;
    const SWOOLE_SOCK_UNIX_DGRAM = 6;

    public function start(): void;
}